package ar.com.photo_admin.domain

class Photo extends DomainObject {

	String name

	//Url en el servidor. 	
	//String localUrl
	
	//Url publica donde se podra visualizar la imagen
	String url
	
	Set groups

	static belongsTo = PhotoGroup

	static hasMany = [groups : PhotoGroup]
			
	static constraints = {
		name (blank:false) 
		url (blank:false, unique:true)
	}
}